import api from './api';

// 性格分析
export const characterAnalysis = async (data: {
  baziId: string;
}) => {
  return api.post('/character/analysis', data);
};

// 获取性格详细分析（付费内容）
export const getCharacterDetail = async (characterId: string) => {
  return api.get(`/character/analysis/${characterId}/detail`);
};

// 获取今日运势
export const getDailyFortune = async (baziId: string) => {
  return api.get(`/character/fortune/daily/${baziId}`);
};

// 获取运势详细内容（付费）
export const getFortuneDetail = async (forecastId: string) => {
  return api.get(`/character/fortune/${forecastId}/detail`);
};
